home *** CD-ROM | disk | FTP | other *** search
- echo off
- if not "%1"=="" goto ok
- cls
- echo.
- echo ARCVIEW - For reading viewing the contents of files inside archives.
- echo Supporting ZIP, ARJ, LZH, ZOO, ARC and PAK (assumes that you have PKZIP etc..)
- echo The user is presented with a scrolling menu of filenames from which they
- echo can choose to view a particular file.
- echo.
- echo USAGE: ARCVIEW name [opt1 opt2.. opt8]
- echo Where: "name" is the name of the archive, less the extension
- echo "opt1-opt8" are optional extra parameters
- echo.
- echo e.g. ARCVIEW * "Match all archives in current dir"
- echo ARCVIEW C: "Match all archives on drive C:"
- echo ARCVIEW C: /!E "As above, ignoring executable files in archives"
- echo ARCVIEW SOURCE "Match archive SOURCE, e.g. SOURCE.ZIP"
- echo ARCVIEW * /W READ* "Search whole drive, only selecting files
- echo matching READ* from within archives"
- goto exit
- :ok
- md _a
- set _=[?$3# of $F: $13p $8n.$3e $7s $d $t: View?]RQF %2 %3 %4 %5 %6 %7 %8 %9
- cls
- echo Matching ZIP
- d %1.zip\. [pkunzip $l$p$B _a\ $f//d _a\$f/q.[ESC ends]//del _a\$f]Z[z] :_
- cls
- echo Matching ARJ
- d %1.arj\. [arj e $l$r$B _a\ $f//d _a\$f/q.[ESC ends]//del _a\$f]Z[j] :_
- cls
- echo Matching LZH
- d %1.lzh\. [lha x $l$p$B _a\ $f//d _a\$f/q.[ESC ends]//del _a\$f]Z[l] :_
- cls
- echo Matching ZOO
- d %1.zoo\. [cd _a//zoo -e $l$r$B $f//d $f/q.[ESC ends]//del $f//cd ..]Z[o] :_
- cls
- echo Matching ARC and PAK
- d %1.arc\. %1.pak\. [pkunpak $l$p$B _a\ $f//d _a\$f/q.[ESC ends]//del _a\$f]Z[a] :_
- rd _a
- set _=
- :exit
-